 var refresh_timer = setInterval(function(){
	$.ajax({
    url: "http://vicounter.localhost/frontend_dev.php/rest/show.json",
	   dataType: "jsonp",
		headers: {'method': 'PUT'},
	   error: function(XMLHttpRequest, textStatus, errorThrown){
      	 alert(textStatus);
    },
    success: function(result, txtStatus, httpRequest) {
	   	$("div#display").html(result.counter);
 	},
 })}, 20000);
	